package com.ruoyi.carowner.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.carowner.mapper.CarownerWalletAnswerMapper;
import com.ruoyi.carowner.domain.CarownerWalletAnswer;
import com.ruoyi.carowner.service.ICarownerWalletAnswerService;

/**
 * 常见问题回答Service业务层处理
 *
 * @author ruoyi
 * @date 2024-08-14
 */
@Service
public class CarownerWalletAnswerServiceImpl implements ICarownerWalletAnswerService {
    @Autowired
    private CarownerWalletAnswerMapper carownerWalletAnswerMapper;

    /**
     * 查询常见问题回答
     *
     * @param id 常见问题回答主键
     * @return 常见问题回答
     */
    @Override
    public CarownerWalletAnswer selectCarownerWalletAnswerById(Integer id) {
        return carownerWalletAnswerMapper.selectCarownerWalletAnswerById(id);
    }

    /**
     * 查询常见问题回答列表
     *
     * @param carownerWalletAnswer 常见问题回答
     * @return 常见问题回答
     */
    @Override
    public List<CarownerWalletAnswer> selectCarownerWalletAnswerList(CarownerWalletAnswer carownerWalletAnswer) {
        return carownerWalletAnswerMapper.selectCarownerWalletAnswerList(carownerWalletAnswer);
    }



    /**
     * 新增常见问题回答
     *
     * @param carownerWalletAnswer 常见问题回答
     * @return 结果
     */
    @Override
    public int insertCarownerWalletAnswer(CarownerWalletAnswer carownerWalletAnswer) {
        return carownerWalletAnswerMapper.insertCarownerWalletAnswer(carownerWalletAnswer);
    }

    /**
     * 修改常见问题回答
     *
     * @param carownerWalletAnswer 常见问题回答
     * @return 结果
     */
    @Override
    public int updateCarownerWalletAnswer(CarownerWalletAnswer carownerWalletAnswer) {
        return carownerWalletAnswerMapper.updateCarownerWalletAnswer(carownerWalletAnswer);
    }

    /**
     * 批量删除常见问题回答
     *
     * @param ids 需要删除的常见问题回答主键
     * @return 结果
     */
    @Override
    public int deleteCarownerWalletAnswerByIds(Integer[] ids) {
        return carownerWalletAnswerMapper.deleteCarownerWalletAnswerByIds(ids);
    }

    /**
     * 删除常见问题回答信息
     *
     * @param id 常见问题回答主键
     * @return 结果
     */
    @Override
    public int deleteCarownerWalletAnswerById(Integer id) {
        return carownerWalletAnswerMapper.deleteCarownerWalletAnswerById(id);
    }
}
